package com.avamanager.app.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.avamanager.common.annotation.Excel;
import com.avamanager.common.core.domain.BaseEntity;

/**
 * 成绩信息对象 app_score
 * 
 * @author FenvyYe
 * @date 2022-08-15
 */
public class AppScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分数字段ID */
    private Long scoreId;

    /** 课程名 */
    @Excel(name = "课程名")
    private String courseName;

    /** 学生ID */
    @Excel(name = "学生ID")
    private Long studentId;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String studentName;

    /** 学分 */
    @Excel(name = "学分")
    private BigDecimal credit;

    /** 成绩 */
    @Excel(name = "成绩")
    private Long score;

    /** 绩点 */
    @Excel(name = "绩点")
    private BigDecimal gpa;

    /** 成绩是否有效 */
    @Excel(name = "成绩是否有效")
    private String scoreValid;

    public void setScoreId(Long scoreId) 
    {
        this.scoreId = scoreId;
    }

    public Long getScoreId() 
    {
        return scoreId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }
    public void setCredit(BigDecimal credit) 
    {
        this.credit = credit;
    }

    public BigDecimal getCredit() 
    {
        return credit;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setGpa(BigDecimal gpa) 
    {
        this.gpa = gpa;
    }

    public BigDecimal getGpa() 
    {
        return gpa;
    }
    public void setScoreValid(String scoreValid) 
    {
        this.scoreValid = scoreValid;
    }

    public String getScoreValid() 
    {
        return scoreValid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scoreId", getScoreId())
            .append("courseName", getCourseName())
            .append("studentId", getStudentId())
            .append("studentName", getStudentName())
            .append("credit", getCredit())
            .append("score", getScore())
            .append("gpa", getGpa())
            .append("scoreValid", getScoreValid())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
